import vueRouter from 'vue-router'
import Home from './component/Home.vue'
import Member from './component/Member.vue'
import Shopcar from './component/Shopcar.vue'
import Search from './component/Search.vue'
import NewsList from './component/NewsList.vue'
import NewsInfo from './component/NewsInfo.vue'
import PhotoList from './component/PhotoList.vue'
import ProductInfo from './component/ProductInfo.vue'
import ProductComment from './component/ProductComment.vue'

export default new vueRouter({
	routes:[
		{
			path: "/home" ,
			component:Home ,
		},
		{path: "/member" , component:Member},
		{path: "/shopcar" , component:Shopcar},
		{path: "/search" , component:Search},
		{path:'/' , redirect: '/home'},
		{path:'/home/newslist',component:NewsList},
		{path:'/home/newsinfo/:id',component: NewsInfo},
		{path:'/home/photolist',component:PhotoList},
		{path:'/productinfo/:id', component: ProductInfo},
		{path:'/comment/:id', component:ProductComment}
	]
})